<!DOCTYPE html>
<html >
<head>
    <meta charset="utf-8"/>
    <title>群组管理</title>
    <meta name="keywords" content="manager,personal,manage"/>
    <meta name="description" content="群组,群组,群组管理"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js"></script>
    <script src="./assets/js/jquery.validationEngine.js"></script>
    <style>
        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
    </style>
</head>
<body>
<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <form id="stationFormId" class="form-horizontal" role="form">
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">创建时间:</span>
                    <input class="form-control date-picker form-control-three" id="endDate"
                           type="text" data-date-format="yyyy-mm-dd"/>
                    <span class="positi"> 至 </span>
                    <input class="form-control date-picker form-control-four" id="startDate"
                           type="text" data-date-format="yyyy-mm-dd"/>
                </div>
                <div class="input-group input-group-sm input-group-sm3">
                    <label for="name_search" class="input-group-addon group-addon group-addon3" style="width: 70px;">歌名/作者:</label>
                    <input type="text" class="form-control form-control-two" id="name_search">
                </div>
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon group-addon1">分类:</span>
                    <select id="type_search"></select>
                </div>
                <div class="input-group input-group-sm input-group-sm3" style="margin-left: 20px;">
                    <button id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                        <i class="icon-search nav-search-icon"></i>
                    </button>
                    <button id="dataAdd" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#addModal" title="添加">
                        <i class="icon-plus-sign bigger-120"></i>
                    </button>
                    <button id="dataAddType" type="button" class="btn btn-sm btn-success" title="添加到分类" disabled>
                        <!--<i class="icon-pencil bigger-130"></i>-->
                        添加到分类
                    </button>
                    <!--<button id="dataDelete" type="button" class="btn btn-sm btn-danger"-->
                    <!--data-toggle="modal" data-target="#deleteModal" disabled-->
                    <!--title="帖子删除">-->
                    <!--<i class="icon-trash bigger-130"></i>-->
                    <!--</button>-->
                </div>
            </form>
            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="musci_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->
<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">新增音乐</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="add">
                    <div class="form-group">
                        <label for="add_image" class="col-sm-2 control-label">专辑封面</label>
                        <div class="col-sm-10" style="position:relative;">
                            <p style="margin-top: 5px;">请上传200*200px尺寸,正方形的图片</p>
                            <!-- <img onclick="getElementById('addPageAddImg').click()"
                                 style="cursor:pointer;border: 1px solid #AABBCC;" title="点击添加图片" alt="点击添加图片"
                                 src="./assets/images/addImg.jpg" /> -->
                            <a href="#">
                                <input class="putbox addFiles" type="file" name="image" id="add_image" style="height: 100%;"/>
                                <div id="bord" style="height: 165px;">
                                    <img class="imgbox" id="show_image">
                                </div>
                            </a>
                            <input type="text" id="add_imageUrl" hidden>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_musicFile" class="col-sm-2 control-label">音乐文件</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control validate[required]" id="add_musicFile"
                                   name="add_musicFile" value="" />
                        </div>
                        <div class="col-sm-2" style="padding: 0;padding-top: 2px;">
                            <a href="javascript:void(0);" class="file">选择文件
                                <input type="file" class="addFiles" name="" id="addMusic">
                            </a>
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<label for="add_videoFile" class="col-sm-2 control-label">视频文件</label>-->
                        <!--<div class="col-sm-8">-->
                            <!--<input type="text" class="form-control validate[required]" id="add_videoFile"-->
                                   <!--name="add_videoFile" value="" />-->
                        <!--</div>-->
                        <!--<div class="col-sm-2" style="padding: 0;padding-top: 2px;">-->
                            <!--<a href="javascript:void(0);" class="file">选择文件-->
                                <!--<input id="addVideo" class="addFiles" type="file" >-->
                            <!--</a>-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label for="add_musicName" class="col-sm-2 control-label">音乐名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="add_musicName"
                                   name="add_musicName" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_singerName" class="col-sm-2 control-label">歌手名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="add_singerName"
                                   name="add_singerName" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_musicLength" class="col-sm-2 control-label">歌曲长度</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="add_musicLength"
                                   name="add_musicLength" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <span class="col-sm-2 control-label">设置分类</span>
                        <div class="col-sm-10 addTypeList">

                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="addForm" type="submit">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 修改的modal start-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div id="modalDialog" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">修改音乐</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="updateForm" data-type="update">
                    <div class="form-group" style="display: none;">
                        <label for="update_musicId" class="col-sm-2 control-label">ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_musicId"
                                   name="update_musicId" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_image" class="col-sm-2 control-label">专辑封面</label>
                        <div class="col-sm-10" style="position:relative;">
                            <p style="margin-top: 5px;">请上传200*200px尺寸,正方形的图片</p>
                            <!-- <img onclick="getElementById('addPageAddImg').click()"
                                 style="cursor:pointer;border: 1px solid #AABBCC;" title="点击添加图片" alt="点击添加图片"
                                 src="./assets/images/addImg.jpg" /> -->
                            <a href="#">
                                <input class="putbox updateFiles" type="file" name="image" id="update_image" style="height: 100%;"/>
                                <div id="bord" style="height: 165px;">
                                    <img class="imgbox" id="show_image1"  src="">
                                </div>
                            </a>
                            <input type="text" id="update_imageUrl" hidden>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="update_musicFile" class="col-sm-2 control-label">音乐文件</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control validate[required]" id="update_musicFile"
                                   name="update_musicFile" value="" />
                        </div>
                        <div class="col-sm-2" style="padding: 0;padding-top: 2px;">
                            <a href="javascript:void(0);" class="file">选择文件
                                <input type="file" class="updateFiles" name="" id="updateMusic">
                            </a>
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<label for="update_videoFile" class="col-sm-2 control-label">视频文件</label>-->
                        <!--<div class="col-sm-8">-->
                            <!--<input type="text" class="form-control validate[required]" id="update_videoFile"-->
                                   <!--name="update_videoFile" value="" />-->
                        <!--</div>-->
                        <!--<div class="col-sm-2" style="padding: 0;padding-top: 2px;">-->
                            <!--<a href="javascript:void(0);" class="file">选择文件-->
                                <!--<input id="updateVideo" class="updateFiles" type="file" >-->
                            <!--</a>-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label for="add_musicName" class="col-sm-2 control-label">音乐名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_musicName"
                                   name="update_musicName" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="add_singerName" class="col-sm-2 control-label">歌手名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_singerName"
                                   name="update_singerName" value="" />
                        </div>
                    </div>
                    <div class="form-group" style="display: none;">
                        <label for="update_playCount" class="col-sm-2 control-label">热度</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_playCount"
                                   name="update_playCount" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="update_musicLength" class="col-sm-2 control-label">歌曲长度</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control validate[required]" id="update_musicLength"
                                   name="update_musicLength" value="" />
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<span class="col-sm-2 control-label">设置分类</span>-->
                        <!--<div class="col-sm-10 updateTypeList">-->

                        <!--</div>-->
                    <!--</div>-->
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="updateForm" type="submit" data-type="update">保存</button>
                <!--<button type="submit" class="btn btn-primary" name="submit" data-type="update">保存</button>-->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 修改的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除当前音乐</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="delete">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <!--<button type="submit" class="btn btn-primary">确认</button>-->
                    <button type="submit" class="btn btn-primary" form="deleteForm" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->

<!-- 添加到分类的modal start-->
<div class="modal fade" id="addTypeModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">添加到</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addTypeForm" data-type="addType">
                    <div class="form-group">
                        <label for="update_musicId" class="col-sm-2 control-label">选择分类</label>
                        <div class="col-sm-10">
                            <div class="col-sm-10">
                                <select  class="form-control" name="" id="addAllType">
                                    <option value="1">分类1</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <!--<button type="submit" class="btn btn-primary">确认</button>-->
                <button type="button" class="btn btn-primary" id="addToType">确认</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加到分类的modal end-->

<!--获取音乐时长-->
<audio id="audio" src="" style="display: none;" ></audio>

<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/musicList.js"></script>
</body>
</html>
